<?php
class User extends Users{
    
    static function getName($id){
        $name = Users::model()->findByPk($id);
        return $name->name;
    }
     static function getEmail($id){
        $email = Users::model()->findByPk($id);
        return $email->email;
    }
    
}

?>